package SimpleFactory;

/**
 * 功能:
 * 作者: ldl
 * 时间: 2016-08-10 15:32
 */
public class Div extends Operation {

    @Override
    public double getResult() {

        if (numberB == 0) {
            return 0;
        }
        return numberA / numberB;
    }
}
